:: It is recommended to test the script on a local machine for its purpose and effects. :: ManageEngine Endpoint Central will not be responsible for any :: damage/loss to the data/setup based on the behavior of the script. :: Description - Script To change the IPv4 IP Address of the Machine :: Configuration Type - COMPUTER :: Arguments: :: InterfaceName IPAddress SubnetMask DefaultGateway PreferredDNS :: Example: :: Ethernet 192.21.06.99 255.255.255.0 192.07.02.00 8.8.8.8 :: ============================================================== @echo off netsh interface ipv4 set address name="%1" static %2 %3 %4 @echo off netsh interface ipv4 set dns name="%1" static %5